<template>
  <!-- 弹窗组件 -->
  <div class="showToast">{{ text }}</div>
</template>
<script setup>
import { onMounted, ref } from "vue";
defineProps({
  text: String,
});
const isShow = ref(false);

onMounted(() => {
  isShow.value = true;
});
</script>
<style scoped>
.showToast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  background-color: rgb(97, 97, 97);
  color: #fff;
  border-radius: 3px;
  font-size: 16px;
  box-sizing: border-box;
  padding: 10px 20px;
}
</style>
